import xyRequest from '..'
//POST /user/activities/add 新增活动信息
export function addActivity(data: any) {
  return xyRequest.post({
    url: '/user/activities/add',
    data
  })
}
//DELETE /user/activities/{id} 删除活动
export function delActivity(id: string) {
  return xyRequest.delete({
    url: `/user/activities/${id}`
  })
}
//GET /user/activities/getByModel/{id} 根据模块的id查找活动
export function getActivityByModel(id: string) {
  return xyRequest.get({
    url: `/user/activities/getByModel/${id}`
  })
}
//POST /user/activities/update 修改活动
export function updateActivity(data: any) {
  return xyRequest.post({
    url: '/user/activities/update',
    data
  })
}
